package cn.edu.imau.zy.examination.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableField;
import cn.edu.imau.zy.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.*;


/**
 * 问题题目对象 el_qu
 *
 */

@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("el_qu")
public class ElQu implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 题目ID */
    private String id;

    /** 题目类型 */
    @Excel(name = "题目类型")
    private Long quType;

    /** 1普通,2较难 */
    @Excel(name = "1普通,2较难")
    private Long level;

    /** 题目内容 */
    @Excel(name = "题目内容")
    private String content;

    /** 整题解析 */
    @Excel(name = "整题解析")
    private String analysis;

    @Excel(name = "题库备注")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


    /** 归属题库 **/
    @Excel(name = "归属题库")
    @TableField(exist = false)
    private String repoId;
//    private List<String> repoId;

    /** 候选答案列表 **/
    @TableField(exist = false)
    private List<ElQuAnswer> el = new ArrayList<>();

    @TableField(exist = false)
    private List<ElQuAnswer> row = new ArrayList<>();

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();

}
